package discount

import (
	"time"
)



type UserLevel int

const (
	// UserLevelBasic 普通用户
	UserLevelBasic UserLevel = 1
	// UserLevelSilver 白银用户
	UserLevelSilver UserLevel = 2
	// UserLevelGold 黄金用户
	UserLevelGold UserLevel = 3
	// UserLevelPlatinum 铂金用户
	UserLevelPlatinum UserLevel = 4
)

// User 用户信息
type User struct {
	ID       string
	Name     string
	Level    UserLevel
	JoinDate time.Time
}

// Product 商品信息
type Product struct {
	ID       string
	Name     string
	Price    float64
	Category string
}

// OrderItem 订单项
type OrderItem struct {
	Product  Product // 商品
	Quantity int     // 购买数量
}

// Order 订单信息
type Order struct {
	ID        string
	UserID    string
	Items     []OrderItem
	OrderTime time.Time // 订单时间
}
